package me.shiqiang.im.microservice;

import me.shiqiang.im.microservice.returnobj.UserKeyReturnObj;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by maliangxue on 2018/1/9.
 */
@FeignClient(name = "service-user-account-token")
@RequestMapping("/users-token")
public interface AuthClient {

    @GetMapping("token")
    UserKeyReturnObj getToken(@RequestParam("uid") Long userId, @RequestParam("deviceId") String deviceId);
}
